/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2012
 */

package com.tudou.searchcontrol.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class TudouM implements java.io.Serializable{
	private static final long serialVersionUID = 1L;
	
	//alias
	public static final String TABLE_ALIAS = "TudouM";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_TITLE = "title";
	public static final String ALIAS_DIRECTOR = "director";
	public static final String ALIAS_STARRING = "starring";
	public static final String ALIAS_REGION = "region";
	public static final String ALIAS_SHOW_TIME = "showTime";
	public static final String ALIAS_LENGTH = "length";
	public static final String ALIAS_TYPE = "type";
	public static final String ALIAS_PIRURL = "pirurl";
	public static final String ALIAS_PLAYURL = "playurl";
	public static final String ALIAS_INTRODUCTION = "introduction";
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * id       db_column: id 
     */	
	
	private java.lang.Long id;
    /**
     * title       db_column: title 
     */	

	private java.lang.String title;
    /**
     * director       db_column: director 
     */	
	private java.lang.String director;
    /**
     * starring       db_column: starring 
     */	
	private java.lang.String starring;
    /**
     * region       db_column: region 
     */	
	private java.lang.String region;
    /**
     * showTime       db_column: showTime 
     */	
	private java.lang.String showTime;
    /**
     * length       db_column: length 
     */	
	private java.lang.String length;
    /**
     * type       db_column: type 
     */	
	private java.lang.String type;
    /**
     * pirurl       db_column: pirurl 
     */	
	private java.lang.String pirurl;
    /**
     * playurl       db_column: playurl 
     */	
	private java.lang.String playurl;
    /**
     * introduction       db_column: introduction 
     */	
	private java.lang.String introduction;
	//columns END

	public TudouM(){
	}

	public TudouM(
		java.lang.Long id
	){
		this.id = id;
	}

	public void setId(java.lang.Long value) {
		this.id = value;
	}
	
	public java.lang.Long getId() {
		return this.id;
	}
	public void setTitle(java.lang.String value) {
		this.title = value;
	}
	
	public java.lang.String getTitle() {
		return this.title;
	}
	public void setDirector(java.lang.String value) {
		this.director = value;
	}
	
	public java.lang.String getDirector() {
		return this.director;
	}
	public void setStarring(java.lang.String value) {
		this.starring = value;
	}
	
	public java.lang.String getStarring() {
		return this.starring;
	}
	public void setRegion(java.lang.String value) {
		this.region = value;
	}
	
	public java.lang.String getRegion() {
		return this.region;
	}
	public void setShowTime(java.lang.String value) {
		this.showTime = value;
	}
	
	public java.lang.String getShowTime() {
		return this.showTime;
	}
	public void setLength(java.lang.String value) {
		this.length = value;
	}
	
	public java.lang.String getLength() {
		return this.length;
	}
	public void setType(java.lang.String value) {
		this.type = value;
	}
	
	public java.lang.String getType() {
		return this.type;
	}
	public void setPirurl(java.lang.String value) {
		this.pirurl = value;
	}
	
	public java.lang.String getPirurl() {
		return this.pirurl;
	}
	public void setPlayurl(java.lang.String value) {
		this.playurl = value;
	}
	
	public java.lang.String getPlayurl() {
		return this.playurl;
	}
	public void setIntroduction(java.lang.String value) {
		this.introduction = value;
	}
	
	public java.lang.String getIntroduction() {
		return this.introduction;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Title",getTitle())
			.append("Director",getDirector())
			.append("Starring",getStarring())
			.append("Region",getRegion())
			.append("ShowTime",getShowTime())
			.append("Length",getLength())
			.append("Type",getType())
			.append("Pirurl",getPirurl())
			.append("Playurl",getPlayurl())
			.append("Introduction",getIntroduction())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof TudouM == false) return false;
		if(this == obj) return true;
		TudouM other = (TudouM)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

